package app.caihan.scframe.livedata

import androidx.lifecycle.MutableLiveData


/**
 * 自定义的Double类型 MutableLiveData 提供了默认值，避免取值的时候还要判空
 *
 * @author Seven-C
 * @date 2020/7/27
 */
class StringLiveData : MutableLiveData<String>() {

    override fun getValue(): String {
        return super.getValue() ?: ""
    }

}